import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("application.xml");
        Students students=context.getBean(Students.class);
        System.out.println("6.bean对象可以使用了"+students);
        context.close();
        System.out.println("8.关闭ioc容器");
    }
}
